Skip to content

feat(orm): Add api to do cursor based pagination - #63441

Open
CarlSchwan wants to merge 1 commit into
masterfrom
carl/pagination-entity
Open

feat(orm): Add api to do cursor based pagination#63441
CarlSchwan wants to merge 1 commit into
masterfrom
carl/pagination-entity

Conversation

@CarlSchwan

Copy link
Copy Markdown
Member

Summary

TODO

  • ...

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@CarlSchwan CarlSchwan added this to the Nextcloud 35 milestone Aug 20, 2026
@CarlSchwan CarlSchwan self-assigned this Aug 20, 2026
@CarlSchwan CarlSchwan added the 3. to review Waiting for reviews label Aug 20, 2026
@CarlSchwan
CarlSchwan requested a review from a team as a code owner August 20, 2026 14:23
@CarlSchwan CarlSchwan added the feature: database Database related DB label Aug 20, 2026
@CarlSchwan
CarlSchwan requested review from a team, Altahrim, leftybournes, salmart-dev, sorbaugh and susnux and removed request for a team August 20, 2026 14:23
@CarlSchwan
CarlSchwan force-pushed the carl/pagination-entity branch from 1e111f1 to 506b7e5 Compare August 20, 2026 15:08
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* @throws \LogicException if the entity has a composite primary key
* @since 35.0.0
*/
public function findByAfterId(array $criteria, int|float|string|null $lastId, int $limit): \Generator {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll probably also need a findByBeforeId, right?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or a parameter for the sort direction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews feature: database Database related DB

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants